package com.jpmc.refapp.workflow.domain;

import java.io.Serializable;

public class Request implements Serializable{
	
	public static enum Priority {
		LOW, NORMAL, HIGH
	}	
	
	private String requestId;
	private String requestType;
	private boolean provFlag;
	private Priority priority;
	
	public Request(String requestId, String requestType, boolean provFlag) 
	{
		super();
		this.requestId = requestId;
		this.requestType = requestType;
		this.provFlag = provFlag;
		this.priority = Priority.NORMAL;
	}
	
	public String getRequestId() {
		return requestId;
	}
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	public String getRequestType() {
		return requestType;
	}
	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}
	public boolean isProvFlag() {
		return provFlag;
	}
	public void setProvFlag(boolean provFlag) {
		this.provFlag = provFlag;
	}
	
	public Priority getPriority() {
		return priority;
	}

	public void setPriority(Priority priority) {
		this.priority = priority;
	}

	public void esclatePriority()
	{
		priority=Priority.HIGH;
	}
	
	public void deesclatePriority()
	{
		priority=Priority.LOW;
	}

}
